<template>
  <div style="width: 300px; height: 200px; backgroundcolor: yellow">
    <h1>B组件</h1>
    <div>{{msg}}</div>
    <BA></BA>
  </div>
</template>

<script>
import bus from "@/bus";
import BA from "./BA.vue";
export default {
  data() {
    return {
      msg: "",
    };
  },
  components: {
    BA,
  },
  mounted() {
    bus.$on("make", (arg) => {this.msg=arg});
  },
};
</script>

<style>
</style>